package com.example.helloworld;

public class Fangfa {
    /** 返回两个整型变量数据的较大值 */
    public static int max(int a, int b) {
        return a > b ? a : b;
    }
    public static void printGrade(double score) {
        if (score >= 90.0) {
            System.out.println('A');
        }
        else if (score >= 80.0) {
            System.out.println('B');
        }
        else if (score >= 70.0) {
            System.out.println('C');
        }
        else if (score >= 60.0) {
            System.out.println('D');
        }
        else {
            System.out.println('F');
        }
    }
    public static void main(String[] args) {
        int i = 5;
        int j = 2;
        int maxs = max(i,j);
        System.out.println(maxs);
        printGrade(79.99);
    }
}
